package com.fmdj.mis.api.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.mis.api.controller.form.SearchOrderByPageForm;
import com.fmdj.mis.api.controller.form.SearchOrderContentForm;
import com.fmdj.mis.api.controller.form.SearchOrderStatusForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient("fmdj-odr")
public interface OdrServiceApi {

    @PostMapping("/order/searchOrderByPage")
    public CommonResult searchOrderByPage(@Valid @RequestBody SearchOrderByPageForm form);

    @PostMapping("/order/searchOrderContent")
    public CommonResult searchOrderContent(@Valid @RequestBody SearchOrderContentForm form);

    @PostMapping("/order/searchOrderStatus")
    @Operation(summary = "查询订单状态")
    public CommonResult searchOrderStatus(@Valid @RequestBody SearchOrderStatusForm form);

    @PostMapping("/order/searchOrderStartLocationIn30Days")
    public CommonResult searchOrderStartLocationIn30Days();


}
